package com.cy.pj.sys.dao;

import com.cy.pj.sys.pojo.SysUserDept;
import com.cy.pj.sys.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserDao {
    List<SysUserDept> findPageObjects(String name);

    @Select("SELECT * FROM sys_users WHERE username=#{username}")
    User findUserByUserName(String name);
}
